package com.cmc.cloud.cmclink.doc.api.document.rep;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * booking confirm 打印配置 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DocBkConfirmPrintSetupBaseDto {

    @Schema(description = "港口代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "港口代码不能为空")
    @Length(max = 5, message = "港口代码支持最大长度{max}")
    private String portCode;

    @Schema(description = "打印公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotBlank(message = "打印公司名称不能为空")
    @Length(max = 100, message = "打印公司名称支持最大长度{max}")
    private String companyName;

    @Schema(description = "打印地址")
    @Length(max = 150, message = "打印地址支持最大长度{max}")
    private String address;

    @Schema(description = "打印电话传真")
    @Length(max = 100, message = "打印电话传真支持最大长度{max}")
    private String telephone;

    @Schema(description = "打印email")
    @Length(max = 100, message = "打印email支持最大长度{max}")
    private String email;

    @Schema(description = "打印备注", example = "你说的对")
    @Length(max = 2000, message = "打印备注支持最大长度{max}")
    private String remark;

}
